package com.lst.service.impl;


import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.lst.dao.SportRecordsMapper;
import com.lst.model.SportRecords;
import com.lst.service.SportRecordsService;


@Service("sportRecordsService")
public class SportRecordsServiceImpl implements SportRecordsService{

	@Autowired
	private SportRecordsMapper dao;

	@Override
	public int insert(SportRecords record) {
		
		return dao.insert(record);
	}

	@Override
	public List<SportRecords> queryByList(Map<String, Object> map) {
		
		return dao.queryByList(map);
	}

	@Override
	public int countByUser(Integer userId) {
		
		return dao.countByUser(userId);
	}

	@Override
	public int countByUser2(Integer userId) {
		
		return dao.countByUser2(userId);
	}

	@Override
	public int countByUser3(Integer userId) {
		
		return dao.countByUser3(userId);
	}

	@Override
	public List<SportRecords> countByUser4(Integer userId) {
		
		return dao.countByUser4(userId);
	}

	@Override
	public int countByMap(Map<String, Object> map) {
		
		return dao.countByMap(map);
	}

	@Override
	public List<SportRecords> queryByMap(Map<String, Object> map, PageBounds pageBounds) {
		
		return dao.queryByMap(map, pageBounds);
	}

	@Override
	public List<SportRecords> queryByMap2(Map<String, Object> map) {
		
		return dao.queryByMap2(map);
	}

}
